//
//  RootViewController.m
//  快踩黑块儿
//
//  Created by Darry on 15/3/7.
//  Copyright (c) 2015年 戴. All rights reserved.
//

#import "RootViewController.h"
#import "PerLineBTViewController.h"


@interface RootViewController ()
{
//    BOOL _blackline[4];
}
@property (nonatomic,retain)PerLineBTViewController *perline;
@end

@implementation RootViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        //游戏主视图添加
        self.perline = [[PerLineBTViewController alloc]init];
        _perline.view.frame = self.view.bounds;
        [self.view addSubview:_perline.view];
        [_perline release];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    for (int i = 0; i < 5; i++) {
//        self->line[i] = [[LineBt alloc]initWithFrame:CGRectMake(0, (-142)+i*142, 320, 142)];
//        [line[i] addTarget:self action:@selector(bingo:) forControlEvents:UIControlEventTouchUpInside];
//        [self.view addSubview:line[i]];
//        [line[i] release];
//    }
    
    

}

//-(void)blackRandom{
//    for (int i = 0; i<4; i++) {
//        _blackline[i] = NO;
//    }
//    int r = arc4random() % 4;
//    _blackline[r] = YES;
//}

//-(void)bingo:(UIButton*)bt{
//    NSLog(@"bingo!");
//    
//}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
